package com.grademaster.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 专业表
 * @TableName majors
 */
@TableName(value ="majors")
@Data
@ApiModel("专业表")
public class Majors implements Serializable {
    /**
     * 专业ID
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("专业ID")
    private Long majorId;

    /**
     * 学院ID
     */
    @ApiModelProperty("学院ID")
    private Long collegeId;

    /**
     * 专业名称
     */
    @ApiModelProperty("专业名称")
    private String majorName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
